//
//  CatButton.m
//  UI_04homeworkTomCat
//
//  Created by dllo on 16/6/8.
//  Copyright © 2016年 dllo. All rights reserved.
//

#import "CatButton.h"

@implementation CatButton

+(instancetype)buttonWithPathName:(NSString *)name withPathSux:(NSString *)sux {
    CatButton *button = [CatButton buttonWithType:UIButtonTypeCustom];
    NSString *path = [[NSBundle mainBundle]pathForResource:name ofType:sux];
    UIImage *image = [UIImage imageWithContentsOfFile:path];
    [button setImage:image forState:UIControlStateNormal];
       return button;
}





@end
